package com.lzy.imagepickerdemo.zn.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.lzy.imagepicker.ImagePicker;
import com.lzy.imagepickerdemo.R;
import com.lzy.imagepickerdemo.imageloader.GlideImageLoader;
import com.lzy.imagepickerdemo.zn.db.PhotoTypeEntity;

/**
 * 作者：刘杰（QQ:770161055,WeChat:yjso0826）
 * 时间： 2018/5/25
 */
public class PhotoTypeAdapter extends BaseQuickAdapter<PhotoTypeEntity, BaseViewHolder> {
    private ImagePicker imagePicker;
    public PhotoTypeAdapter(){

        super(R.layout.photo_type_item);
        imagePicker = ImagePicker.getInstance();
        imagePicker.setImageLoader(new GlideImageLoader());
    }
    @Override
    protected void convert(BaseViewHolder helper, PhotoTypeEntity item) {
        helper.setText(R.id.tv_title,item.name);

    }
}
